package com.wing.res.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.qualification.model.entity.Qualification;
import com.wing.qualification.model.request.QualificationForm;
import com.wing.qualification.model.response.QualificationVO;
import com.wing.res.model.entity.BenchmarkBook;
import com.wing.res.model.request.ResBenchmarkBookAddForm;
import com.wing.res.model.response.ResBenchmarkBookDetailVo;

import java.util.List;
import java.util.Map;

/**
 * 基准书-Service
 *
 * @author xiayang
 */
public interface BenchmarkBookService extends IService<BenchmarkBook> {

    /**
     * 分页列表
     *
     * @param page
     * @param params
     * @return
     */
    Page<BenchmarkBook> list(Page page, Map<String, Object> params);

    /**
     * 生成基准书
     * @param resBenchmarkBookAddForm
     * @return
     */
    Long generateBenchmarkBook(ResBenchmarkBookAddForm resBenchmarkBookAddForm);

    /**
     * 查询基准书详情
     * @param id
     * @return
     */
    ResBenchmarkBookDetailVo detail(Long id,Map<String, Object> params);

    /**
     * 修改基准书
     * @param resBenchmarkBookAddForm
     * @return
     */
    int updateBenchmarkBook(ResBenchmarkBookAddForm resBenchmarkBookAddForm);

    /**
     * 修改基准书状态
     * @param id
     * @param status
     * @return
     */
    int benchmarkBookChange(Long id, String status);

    /**
     * 作废基准书
     * @param id
     * @return
     */
    int voidBook(Long id);
}
